package com.wago.dao;

import com.wago.entity.Studnet;
import com.wago.mapper.StudentMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by "鐤媯鐨勭爜宸�" on 2017-09-11.
 */
@Data @Service
public class StudentDao {
    @Autowired
private StudentMapper st;

public Studnet aa(int id){

    return st.ByID(id);
}
public int bb(Studnet stu){

    return st.insert(stu);
}
}
